<script>
	import {
		getToken
	} from '@/request/auth.js'
	export default {
		onLaunch: function() {
			console.log('App Launch')
			let token = getToken()
			if (!token) {
				//不存在则跳转至登录页
				uni.reLaunch({
					url: "pages/login/login"
				})
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
